package cn.modular02.work03;

/**
 * @author ASUS
 * @date 2020/7/21 20:14
 * @description
 */
public class PhonePackage implements PhoneService{

    private int talkTimeMinute;//通话时长

    private int noteCount;//短信条数

    private int cost;//套餐资费

    public int getTalkTimeMinute() {
        return talkTimeMinute;
    }

    public void setTalkTimeMinute(int talkTimeMinute) {
        this.talkTimeMinute = talkTimeMinute;
    }

    public int getNoteCount() {
        return noteCount;
    }

    public void setNoteCount(int noteCount) {
        this.noteCount = noteCount;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public void show(){
        System.out.println("通话时长："+talkTimeMinute);
        System.out.println("短信条数："+noteCount);
        System.out.println("套餐资费："+cost);
    }

    @Override
    public void method01(int talkTimeMinute, Card card) {
        System.out.println("通话时长："+talkTimeMinute);
        System.out.println("短信条数："+noteCount);
        System.out.println("套餐资费："+cost);
        System.out.println("卡类型："+card.getType());
    }
}
